﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;
using NBusiness.Query;

namespace NBusiness.Data
{
    public class PersistEventArgs : EventArgs
    {
        public IQuery Query { get; private set; }
        public PersistType Type { get; private set; }

        public PersistEventArgs(IQuery query)
            : this(query, PersistType.Upward)
        { }

        public PersistEventArgs(IQuery query, PersistType type)
        {
            Query = query;
            Type = type;
        }
    }
}
